#ifndef _UTILS_H_
#define _UTILS_H_

#include <WinSock2.h>
#include <iostream>


#ifdef _WIN32

//shutdown how
#define SHUT_RDWR SD_BOTH
#define SHUT_WR SD_SEND
#define SHUT_RD SD_RECEIVE
typedef SOCKET socket_fd;
#define ERROR_SOCKET_FD INVALID_SOCKET

#else
typedef int socket_fd;
#define ERROR_SOCKET_FD -1
#endif


#endif